<nav class="navbar navbar-expand-lg bg-info fixed-top">
    <div class="container">
        <div class="navbar-translate">
            <div class="navbar-brand text-white" style="font-size: 22px;">{$system_name}</div>
            <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
                data-target="#example-navbar-info" aria-controls="navbarSupportedContent" aria-expanded="false"
                aria-label="Toggle navigation">
                <span class="navbar-toggler-bar bar1"></span>
                <span class="navbar-toggler-bar bar2"></span>
                <span class="navbar-toggler-bar bar3"></span>
            </button>
        </div>

        <div class="collapse navbar-collapse justify-content-end has-image" id="example-navbar-info">
            <ul class="navbar-nav">
                <li class="nav-item" style="float: right;">
                    <a class="nav-link" href="{:url('index/index')}">
                        <p style="font-size: 16px;">首页</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('index/notice_list')}">
                        <p style="font-size: 16px;">更多资讯</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('index/link')}">
                        <p style="font-size: 16px;">友情链接</p>
                    </a>
                </li>
                {if condition="$user_info"}
                <li class="nav-item active">
                    <a class="nav-link" href="{:url('User/index')}">
                        <p>{$user_info->name}</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Login/logout')}">
                        <p>退出</p>
                    </a>
                </li>
                {else /}
                {if condition="$registered"}
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Login/index')}">
                        <p>登录</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Login/register')}">
                        <p>注册</p>
                    </a>
                </li>
                {else /}
                <li class="nav-item">
                    <a class="nav-link" href="{:url('Login/index')}">
                        <p>登录</p>
                    </a>
                </li>
                {/if}
                {/if}
            </ul>
        </div>
    </div>
</nav>
<!-- 向下推65像素 -->
<div style="height: 65px;"></div>

<!-- 防止闪屏 -->
<script src="{_INDEX_STATIC_}/moban/assets/js/plugins/jquery.sharrre.js" type="text/javascript"></script>
<!-- Code JS File -->
<script src="{_INDEX_STATIC_}/moban/assets/js/core/jquery.3.2.1.min.js" type="text/javascript"></script>
<script src="{_INDEX_STATIC_}/moban/assets/js/core/popper.min.js" type="text/javascript"></script>
<script src="{_INDEX_STATIC_}/moban/assets/js/core/bootstrap.min.js" type="text/javascript"></script>

<!-- 弹出层 -->
<script src="{_ADMIN_STATIC_}/lib/layer/layer.js"></script>

<!-- 模板动作 -->
<script src="{_INDEX_STATIC_}/moban/assets/js/now-ui-kit.js?v=1.1.0" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        // the body of this function is in assets/js/now-ui-kit.js
        nowuiKit.initSliders();
    });

    function scrollToDownload() {

        if ($('.section-download').length != 0) {
            $("html, body").animate({
                scrollTop: $('.section-download').offset().top
            }, 1000);
        }
    }
</script>